Skip to content

fix(thundermail): redirecting to thundermail screen shown when oAuth is cancelled#11045

Merged
rafaeltonholo merged 8 commits into
thunderbird:mainfrom
rafaeltonholo:fix/thundermail-redirect-page-issues
May 29, 2026
Merged

fix(thundermail): redirecting to thundermail screen shown when oAuth is cancelled#11045
rafaeltonholo merged 8 commits into
thunderbird:mainfrom
rafaeltonholo:fix/thundermail-redirect-page-issues

Conversation

@rafaeltonholo
Copy link
Copy Markdown
Member

Fix #11043.

  • Add preview with multiple error states (BrowserNotAvailable, Cancelled, Unknown)
  • Extract ThundermailOAuthRedirectScreen composable for preview support
  • Improve layout with consistent horizontal padding
  • Extract RedirectingUserContent into a separate composable
  • Add BrowserNotAvailable error state to AccountOAuthContract and ThundermailContract
  • Catch ActivityNotFoundException when launching OAuth custom tabs
  • Map OAuth error states to Thundermail error states in ThundermailOAuthViewModel
  • Display a user-friendly error message when the browser is unavailable

@rafaeltonholo rafaeltonholo requested a review from a team as a code owner May 26, 2026 12:16
@rafaeltonholo rafaeltonholo requested a review from jbott-tbird May 26, 2026 12:17
@rafaeltonholo rafaeltonholo added the report: exclude Exclude changes from user-facing reports (internal, minor, or not relevant to users). label May 26, 2026
@github-actions github-actions Bot added the tb-team Tasks and features handled by project maintainers label May 26, 2026
@rafaeltonholo rafaeltonholo requested review from wmontwe and removed request for jbott-tbird May 26, 2026 17:01
@rafaeltonholo rafaeltonholo assigned wmontwe and unassigned jbott-tbird May 26, 2026
@rafaeltonholo rafaeltonholo force-pushed the fix/thundermail-redirect-page-issues branch from 298cf13 to 3390f88 Compare May 26, 2026 19:06
Copy link
Copy Markdown
Member

@wmontwe wmontwe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Just remove the state logging.

…rate file

- Add error handling UI with back navigation support
- Display error messages for canceled and unknown errors
- Show loading state during OAuth redirect
- Add BrowserNotAvailable error state to AccountOAuthContract and ThundermailContract
- Catch ActivityNotFoundException when launching OAuth custom tabs
- Map OAuth error states to Thundermail error states in ThundermailOAuthViewModel
- Display user-friendly error message when browser is unavailable
- Add @stable and @immutable annotations to Thundermail contract classes
- Add preview with multiple error states (BrowserNotAvailable, Canceled, Unknown)
- Extract ThundermailOAuthRedirectScreen composable for preview support
- Improve layout with consistent horizontal padding
- Extract RedirectingUserContent into separate composable
- Move ViewModel parameter to end following Compose guidelines
- Extract hardcoded error strings to string resources for localization
- Add BrowserNotAvailable error state to AccountOAuthContract and ThundermailContract
- Catch ActivityNotFoundException when launching OAuth custom tabs
- Map OAuth error states to Thundermail error states in ThundermailOAuthViewModel
- Display user-friendly error message when browser is unavailable
- Add @stable and @immutable annotations to Thundermail contract classes
@rafaeltonholo rafaeltonholo force-pushed the fix/thundermail-redirect-page-issues branch from 3390f88 to 00f2c39 Compare May 28, 2026 17:49
@rafaeltonholo rafaeltonholo requested a review from wmontwe May 28, 2026 17:51
@rafaeltonholo
Copy link
Copy Markdown
Member Author

LGTM

Just remove the state logging.

Thanks for the review @wmontwe! I've removed the log and addressed the other comments as well. Please take a look again :)

Copy link
Copy Markdown
Member

@wmontwe wmontwe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rafaeltonholo rafaeltonholo merged commit 2e350db into thunderbird:main May 29, 2026
17 checks passed
@rafaeltonholo rafaeltonholo deleted the fix/thundermail-redirect-page-issues branch May 29, 2026 10:08
@thunderbird-botmobile thunderbird-botmobile Bot added this to the Thunderbird 21 milestone May 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

report: exclude Exclude changes from user-facing reports (internal, minor, or not relevant to users). tb-team Tasks and features handled by project maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Thundermail Integration - Phase 1 - BUG - "Redirecting to Thundermail" screen shown after using canceling OAuth

3 participants